<!--驾驶员评价-->
<template>
<div class="public-common">
    <div class="public-title">驾驶员评价信息列表</div>
    <el-form :model="form" label-width="120px">
        <el-row>
            <el-col :span="12">
                <el-form-item label="名称">
                    <el-input v-model="form.ming" placeholder="请输入驾驶员姓名/身份证号/车牌号/服务星级进行快速搜索"></el-input>
                </el-form-item>
            </el-col>
            <el-col :span="12">
                <el-button type="primary" icon="el-icon-search" style="margin-left:10px;">搜索</el-button>
                <el-button type="primary" icon="el-icon-star-off" style="margin-left:10px;">评价</el-button>
            </el-col>
        </el-row>
    </el-form>
    <el-table :data="tabledata" size="mini" border stripe header-row-class-name="textcenter">
            <el-table-column
                label="驾驶员姓名" fixed="left" prop="a1">
            </el-table-column>
            <el-table-column
                label="车牌号" prop="a2">
            </el-table-column>
            <el-table-column
                label="监督卡类型" prop="a3">
            </el-table-column>
            <el-table-column
                label="注册时间" prop="a4">
            </el-table-column>
            <el-table-column
                label="服务星级" prop="a5">
            </el-table-column>
            <el-table-column
                label="服务评价" prop="a6">
            </el-table-column>
            <el-table-column
                label="评价时间" prop="a7">
            </el-table-column>
            <el-table-column
                label="评价人" prop="a8">
            </el-table-column>
        </el-table>
        <el-pagination
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
        :current-page="page.now"
        :page-sizes="page.sizes"
        :page-size="page.pagesize"
        layout="total, sizes, prev, pager, next, jumper"
        :total="page.total" style="margin-top:10px;">
        </el-pagination>
</div>
</template>

<script>
export default {
    data(){
        return {
              form:{
                  ming:'',
              },
              tabledata:[
                {
                    a1: '王晓',
                    a2: '陕A28545',
                    a3: '电子版',
                    a4: '2018-10-10',
                    a5: '5星',
                    a6: '非常满意',
                    a7: '2018-10-10',
                    a8: '丁建国',
                },
                {
                    a1: '王牛于',
                    a2: '陕A28123',
                    a3: '电子版',
                    a4: '2018-11-10',
                    a5: '5星',
                    a6: '非常满意',
                    a7: '2018-11-10',
                    a8: '丁建国',
                },
                {
                    a1: '刘能与',
                    a2: '陕A28567',
                    a3: '电子版',
                    a4: '2018-12-10',
                    a5: '5星',
                    a6: '非常满意',
                    a7: '2018-12-10',
                    a8: '丁建国',
                },
              ],
              page:{
                now:1,
                pagesize:10,
                sizes:[2,10, 20, 50, 100],
                total:0,
                key:''
              }
        }
    },
    methods:{
        search(){
            alert("search")
        },
        //分页
        handleSizeChange(pagesize){
            this.page.pagesize = pagesize;
            this.search(true,true);
        },
        handleCurrentChange(pageno){
            this.page.now = pageno;
            this.search(true,true);
        }

    }
}
</script>

<style>
.public-common .el-form-item .el-input{ width: 100%;}
.public-title{line-height: 30px;background-color: #deecfd;padding:0 10px;margin-bottom:20px;color: #15428F}

</style>
